import request from '@/api/request'
//订单列表
function findOrdersByPage(start,limit,data) {
    return request({
      url: `/lejuAdmin/order/findOrdersByPage/${start}/${limit}`,
      method: 'POST',
      data
    })
  }

//关闭订单
function finishOrder(orderId,data) {
    return request({
      url: `/lejuAdmin/order/finishOrder/${orderId}`,
      method: 'POST',
      data
    })
  }
//查看订单明细
function orderDetail(orderId,data) {
    return request({
      url: `/lejuAdmin/order/orderDetail/${orderId}`,
      method: 'GET',
      data
    })
  }
//强制确认收货
function receiveProductsForce(orderId,data) {
    return request({
      url: `/lejuAdmin/order/receiveProductsForce/${orderId}`,
      method: 'POST',
      data
    })
  }
//确认发货
function sendDone(data) {
    return request({
      url:"/lejuAdmin/order/sendDone",
      method: 'POST',
      data
    })
  }
export default{
    findOrdersByPage,finishOrder,orderDetail,receiveProductsForce,sendDone
}
